package com.mj.adapters;

import android.content.Context;
import android.widget.RelativeLayout;

import com.anzhi.anzhipostersdk.AdViewLayout;
import com.anzhi.anzhipostersdk.inter.AdViewInterface;

/**
 * <pre>

 * </pre>
 * 
 * @author BPO
 * @version 
 */ 
public class AnzhiAdapter extends CustomizedAdapter implements AdViewInterface{
    
    public static final int AFFLIATE_ID = 26;
    
	private static AdViewLayout view;
	
	public AnzhiAdapter(Object mjLayout, Object ration) {
		super(mjLayout, ration);
	}

    @Override
    public void onHandler(Context context, RelativeLayout parentLayout, String key1, String key2) {
        view = new AdViewLayout(context);
        view.setAdViewConfig(key1, key2);
        
        attachAdview2Layout(view);
    }

	@Override
	public void onClickAd() {
		
	}

	@Override
	public void onDisplayAd() {
		
	    logDisplayAdSucceess();
	}
}